package com.hunan.api.catv.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hunan.api.catv.entity.po.Member;
import com.hunan.api.catv.entity.vo.MemberVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface MemberDao extends BaseDao<Member, MemberVo, Integer>, BaseMapper<Member> {

    public Map<String, Object> inviterCount(Integer memberId);

    public List<MemberVo> inviterList(Integer memberId);

    public List<MemberVo> inviterListByRegTime(@Param("memberId") Integer memberId, @Param("regTime") String regTime,@Param("startDateTime") LocalDateTime startDateTime,@Param("endDateTime") LocalDateTime endDateTime);

    Integer getInviterByMemberId(@Param("memberId") Integer memberId);

    MemberVo getByPhone(@Param("phone") String phone);
}
